package com.angel.kuaidi;

/**
 * 微博的一些常量定义
 * 
 * @author magiclin
 */
public interface KuaidiConstans {

	public static final String APP_KEY = "4A9F66C007D1397633DD11B48955B899";

	public static final String APP_NAME = "Android_KuaiDi";// 应用名称
	// *********************缓存请求参数*********************/
	/**
	 * true: 本次请求可以从缓存中取数据返回给app false: 本次请求不可以从缓存中取数据返回给app
	 */
	public static final String CACHE_REQUEST = "$_cache_request";

	/**
	 * 缓存时效，单位ms 距离当前x时间内创建的缓存有效 0表示没有时效限制(仅在CACHE_REQUEST==true时有效)
	 */
	public static final String CACHE_DURATION = "$_cache_duration";

	/**
	 * 如果本次请求有向网络请求数据，那么取回的数据缓存多久，单位ms 本次请求的产生的缓存只保存x时间 0表示不缓存
	 */
	public static final String CACHE_EXPIRES = "$_cache_expires";

	public static final String ROOT_DIR_PATH = "/angel_kuaidi";

	public static final String ROOT_CACHE_DIR_PATH = ROOT_DIR_PATH + "/cache";

	/** 图片缓存目录 */
	public static final String PIC_CACHE_DIR_PATH = ROOT_CACHE_DIR_PATH + "/pic_cache";

	/** 支持的图像 */
	/** 小图 */
	public static final int PIC_SIZE_SMALL = 1;
	/** 中图 */
	public static final int PIC_SIZE_MIDDLE = 2;
	/** 大图 */
	public static final int PIC_SIZE_LARGE = 3;

	public static final int BACK_HOUSE_INPUT_FACILITY = 100;
	public static final int BACK_HOUSE_INPUT_PROJNAME = 200;
	public static final int BACK_HOUSE_INPUT_ROOM_FACILITY = 300;

	public static final int SELECT_CITY = 1;// 选择城市的requestCode
	public static final int SELECT_DIS_COMERA = 2;// 选择区域的requestCode
	public static final int SELECT_COMERA = 3;// 选择商圈的requestCode
	public static final int IMPORT_CUSTOMER = 100;//
	public static final int CUSTOMER_SELECT_CITY = 101;//
	public static final int CUSTOMER_SELECT_DIS_COMERA = 102;//

	/** 强制升级 */
	public static final String APK_FORCE_UPDATE = "force_update";
	/** 是否能升级 */
	public static final String APK_HAS_UPDATE = "has_update";
	/** 升级url */
	public static final String APK_UPDATE_URL = "update_url";
	/** apk大小 */
	public static final String APK_APP_SIZE = "app_size";
	/** apk描述 */
	public static final String APK_UPDATE_DESCRIBE = "update_describe";
	/** apk名称 */
	public static final String APK_APP_NAME = "app_name";
	/** apk版本 */
	public static final String APK_APP_VERSION = "app_version";
	/** 本地apk版本 */
	public static final String APK_APP_OLD_VERSION = "app_old_version";
	/** 手动更新标识 */
	public static final String APK_MANUAL_UPDATE = "manual_update";
	public static final String RECORD_NAME = "updateProgress";

	public static final String KEY_FILE_SIZE = "FileSize";
	public static final String KEY_DOWNLOADED_SIZE = "Downloaded";
	public static final String UPDATE_APK_PATH = "update_apk_path";
	public static final String APK_NAME = "apk_name";
	public static final String DOWNLOADING = "downloading";

	public static final int CODE_AUTO_UPDATE = 1001;
	public static final int CODE_FORCE_UPDATE = 1002;
	public static final int CODE_MANUAL_UPDATE = 1003;

	public static final int CODE_HOUSE_MRG_OPERATE = 3000;// 房源管理，小区收藏，数据删除、修改的请求状态码
	public static final int CODE_HOUSE_MRG_OPERATE_RES = CODE_HOUSE_MRG_OPERATE + 1;// 房源管理，小区收藏，数据删除、修改的返回状态码

	/**
	 * 当前应用版本号
	 */
	public static final String APP_VERSION = "appversion";
	/**
	 * 请求的message name
	 */
	public static final String MWSSAGE_NAME = "messagename";
}
